import 'dart:io';
import 'package:flutter/foundation.dart';

class FWConfig {

  ///运行模式
  static const isDebug = !kReleaseMode;

  static const isRelease = kReleaseMode;

  static final isIOS = Platform.isIOS;

  static final isAndroid = Platform.isAndroid;

  ///七牛 配置
  static const String qnAccept = 'image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8';
  static const Map<String, String> qnHeader = {'accept': qnAccept};
  static const String qnFlag = 'huaxiafengwu'; //以此判断
  static const String qnProcess = '?imageView2/0';
  static const String qnProcess2 = '?imageMogr2';
  static const String qnProcessFlag = '?image';

  ///imageView2配置
  static const qnImageSizeMini = '$qnProcess/w/140';
  static const qnImageSizeSmall = '$qnProcess/w/500';
  static const qnImageSizeMiddle = '$qnProcess/w/1200';
  static const qnImageSizeBig = '$qnProcess/w/2000';

  ///imageMogr2配置
  static const qnImageSizeMini2 = '$qnProcess2/thumbnail/140x';
  static const qnImageSizeSmall2 = '$qnProcess2/thumbnail/500x';
  static const qnImageSizeMiddle2 = '$qnProcess2/thumbnail/1200x';
  static const qnImageSizeBig2 = '$qnProcess2/thumbnail/2000x';

}
